-
-
Notifications
You must be signed in to change notification settings - Fork 209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(config): sync hook and mfa config to remote #2861
Conversation
Pull Request Test Coverage Report for Build 11772202395Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
08040c7
to
6fe7019
Compare
pkg/config/auth_test.go
Outdated
assert.Contains(t, string(diff), `[hook.mfa_verification_attempt]`) | ||
assert.Contains(t, string(diff), `-enabled = true`) | ||
assert.Contains(t, string(diff), `+enabled = false`) | ||
assert.Contains(t, string(diff), `uri = ""`) | ||
assert.Contains(t, string(diff), `secrets = ""`) | ||
|
||
assert.Contains(t, string(diff), `[hook.custom_access_token]`) | ||
assert.Contains(t, string(diff), `-enabled = false`) | ||
assert.Contains(t, string(diff), `+enabled = true`) | ||
assert.Contains(t, string(diff), `uri = ""`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question
Is there an equivalent to toMatchInlineSnapshot
in Go ? That could maybe be useful instead of repeating the contains for every line as it would also test for the lines order.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not that I'm aware of. But I'm interested as well.
A low hanging fruit is to write the expected diff output to a file under testdata
for comparison.
What kind of change does this PR introduce?
part 4 of #2814
What is the new behavior?
Sync
hook
,mfa
, andsessions
config to remote.Additional context
Add any other context or screenshots.